package com.movitech.mobile.cz.base.purchase.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.movitech.mobile.cz.base.modules.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
/**
 * <p>
 * 战略采购规划-需求明细
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-07-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("p_sp_plan_detail")
@ApiModel
public class PSpPlanDetail extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;
    /**
     * 战略采购规划id
     */
    @ApiModelProperty(value = "战略采购规划id")
    @TableField("strategic_purchase_plan_id")
    private String strategicPurchasePlanId;
    /**
     * 专业（s_strategic_category表id）
     */
    @ApiModelProperty(value = "专业（s_strategic_category表id）")
    @TableField("purchase_major_id")
    private String purchaseMajorId;
    /**
     * 品类（s_strategic_category表id）
     */
    @ApiModelProperty(value = "品类（s_strategic_category表id）")
    @TableField("purchase_category_id")
    private String purchaseCategoryId;
    /**
     * 工程量
     */
    @ApiModelProperty(value = "工程量")
    @TableField("engineering_amount")
    private Double engineeringAmount;
    /**
     * 金额（万元）
     */
    @ApiModelProperty(value = "金额（万元）")
    @TableField("engineering_money")
    private Double engineeringMoney;
    /**
     * 计划使用时间
     */
    @ApiModelProperty(value = "计划使用时间")
    @TableField("plan_use_time")
    private Date planUseTime;
    /**
     * 品牌档次
     */
    @ApiModelProperty(value = "品牌档次")
    @TableField("brand_grade")
    private String brandGrade;
    /**
     * 需求备注
     */
    @ApiModelProperty(value = "需求备注")
    @TableField("required_remarks")
    private String requiredRemarks;
    /**
     * 主责部门（集团或地区公司id）
     */
    @ApiModelProperty(value = "主责部门（集团或地区公司id）")
    @TableField("responsibility_id")
    private String responsibilityId;
    /**
     * 计划启动时间
     */
    @ApiModelProperty(value = "计划启动时间")
    @TableField("plan_setup_time")
    private Date planSetupTime;
    /**
     * 计划完成时间
     */
    @ApiModelProperty(value = "计划完成时间")
    @TableField("plan_finished_time")
    private Date planFinishedTime;
    /**
     * 计划采购方式
     */
    @ApiModelProperty(value = "计划采购方式")
    @TableField("plan_purchase_type")
    private Integer planPurchaseType;
    /**
     * 计划签订年限
     */
    @ApiModelProperty(value = "计划签订年限")
    @TableField("plan_signed_years")
    private Integer planSignedYears;
    /**
     * 计划采购渠道
     */
    @ApiModelProperty(value = "计划采购渠道")
    @TableField("plan_purchase_channels")
    private Integer planPurchaseChannels;
    /**
     * 战略采购年度总规划详情id
     */
    @ApiModelProperty(value = "战略采购年度总规划详情id")
    @TableField("overall_plan_detail_id")
    private String overallPlanDetailId;
    /**
     * 状态（0：未使用，1：已使用）
     */
    @ApiModelProperty(value = "状态（0：未使用，1：已使用）")
    @TableField("use_flag")
    private Integer useFlag;


}
